#include "SectionInfo.h"

SectionInfo::SectionInfo()
{}

SectionInfo::~SectionInfo()
{
	_section_datas.clear();
}

SectionInfo::SectionInfo(const SectionInfo& src)
{
	_section_datas = src._section_datas;
}

SectionInfo& SectionInfo::operator=(const SectionInfo& src)
{
	if (this == &src) {
		return *this;
	}
	this->_section_datas = src._section_datas;
}

std::string SectionInfo::operator[](const std::string& key)
{
	if (_section_datas.find(key) == _section_datas.end()) {
		return "";
	}
	return _section_datas[key];
}